//对外暴露配置路由(常量路由):全部用户都可以访问到的路由
export const constantRoutes = [


    {
        path: '/',
        name: 'Layout',
        component: () => import('@/layout/index.vue'),
        redirect: '/home',
        meta: {
            title: 'layout',
            show: false, // 不显示在侧边栏
        },
        children: [
            {
                path: '/home',
                name: 'Home',
                component: () => import('@/views/home/index.vue'),
                meta: {
                    title: '首页',
                    show: true, // 显示在侧边栏
                    icon: 'HomeFilled'
                },
            }
        ],
    },

    {
        path: '/screen',
        name: 'Screen',
        component: () => import('@/views/screen/index.vue'),
        meta: {
            title: '数据大屏',
            show: true,
            icon: 'Platform'
        }
    },
    {
        path: '/acl',
        name: 'Acl',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '数据权限',
            show: true,
            icon: 'Lock'
        },
        redirect: '/acl/user',
        children: [
            {
                path: '/acl/user',
                name: 'User',
                component: () => import('@/views/user/index.vue'),
                meta: {
                    title: '用户管理',
                    show: true,
                    icon: 'User'
                },
            },
            {
                path: '/acl/role',
                name: 'Role',
                component: () => import('@/views/role/index.vue'),
                meta: {
                    title: '角色管理',
                    show: true,
                    icon: 'UserFilled'
                }
            },
            {
                path: '/acl/permission',
                name: 'Menu',
                component: () => import('@/views/permission/index.vue'),
                meta: {
                    title: '菜单管理',
                    show: true,
                    icon: 'Monitor'
                },
            },
        ],
    },
    {
        path: '/product',
        name: 'Product',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '商品管理',
            show: true,
            icon: 'Goods'   
        },
        redirect: '/product/trademark',
        children: [
            {   
                path: '/product/trademark',
                name: 'Trademark',
                component: () => import('@/views/trademark/index.vue'),
                meta: {
                    title: '品牌管理',
                    show: true,
                    icon: 'ShoppingCartFull'
                }
            },
             {   
                path: '/product/attr',
                name: 'attr',
                component: () => import('@/views/attr/index.vue'),
                meta: {
                    title: '属性管理',
                    show: true,
                    icon: 'ChromeFilled'
                }
            },
              {   
                path: '/product/spu',
                name: 'spu',
                component: () => import('@/views/spu/index.vue'),
                meta: {
                    title: 'spu管理',
                    show: true,
                    icon: 'Calendar'
                }
            },
              {   
                path: '/product/sku',
                name: 'sku',
                component: () => import('@/views/sku/index.vue'),
                meta: {
                    title: 'sku管理',
                    show: true,
                    icon: 'Orange'
                }
            },
        ]
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/login/index.vue'),
    },
    {
        path: '/404',
        name: 'NotFound',
        component: () => import('@/views/404/index.vue'),
        meta: {
            title: '404 Not Found',
            show: false, // 不显示在侧边栏
        }
    },
    {
        path: '/:pathMatch(.*)*',
        name: 'Any',
        redirect: '/404',
        meta: {
            title: '404 Not Found',
            show: false, // 不显示在侧边栏
        }
    }

]